<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
	</head>
	<body>
        11.v-on  绑定事件
        简写 @

		<div id="app">
            <!-- <button v-on:click="show">点击</button> -->
            <button @click="show(10,20)">点击1</button>
            <button @click="showa">点击2</button>
            <button @click="showb(100,200,$event)">点击3</button>
		</div>
		<script>
            var vm=new Vue({
				el:"#app",
                data:{

                },
                methods:{
                    show(n,m){
                        console.log("111",n,m);
                    },
                    showa(e){//e---》vue中的event 
                        console.log("111",e);
                    },
                    showb(n,m,e){//e---》vue中的event 
                        console.log("111",n,m,e);
                    }
                }
			})
		</script>
	</body>
</html>